package main

import (
	"day03/chapter/func/utils"
	"fmt"
)

var age = getAge()

//var age int

func main() {

	fmt.Println("主函数")
	fmt.Println("main", age)

	fmt.Println(utils.Age)
	fmt.Println(utils.Name)
}

//初始化全局 变量
func init() {
	fmt.Println("init age", age)
	age = 123
	fmt.Println("初始化函数")
}

func getAge() int {
	fmt.Println("getAge")
	return 12
}
